package main

import (
	"fmt"
	"runtime"
)



func main()  {
	runtime.GOMAXPROCS(runtime.NumCPU())
	ch := make(chan int)
	go func() {
		for i := 0; i < 100; i++ {
			ch <- i
		}
		close(ch)
	}()
	for i := range ch {
		fmt.Println(i)
	}
}
